package com.xx.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiaoxiunique
 * @since 2018-08-06
 */
public class Comment extends SuperEntity<Comment> {

    private static final long serialVersionUID = 1L;

    private String description;

    @TableField("user_id")
    private Long userId;

    @TableField("create_time")
    private LocalDateTime createTime;

    private Integer status;

    @TableField("blog_id")
    private Integer blogId;

    @TableField("reply_userId")
    private Integer replyUserId;

    @TableField("parent_id")
    private Integer parentId;


    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getBlogId() {
        return blogId;
    }

    public void setBlogId(Integer blogId) {
        this.blogId = blogId;
    }

    public Integer getReplyUserId() {
        return replyUserId;
    }

    public void replyUserId(Integer replyUserId) {
        this.replyUserId = replyUserId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return "Comment{" +
        ", id=" + super.getId() +
        ", description=" + description +
        ", userId=" + userId +
        ", createTime=" + createTime +
        ", status=" + status +
        ", blogId=" + blogId +
        ", replyUserid=" + replyUserId +
        ", parentId=" + parentId +
        "}";
    }
}
